.container {
  padding: 24px 16px;
  background-color: #f8f9fa;
  padding-bottom: 100px; /* 为底部按钮留出空间 */
}

.patientTag {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-start;
}

.tag {
  font-size: 26px;
  padding: 12px 20px;
  border-radius: 20px;
  background-color: #e8f5e8;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  font-weight: 500;
}

.card {
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  padding: 24px;
  border: 1px solid #e8e8e8;
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.icon {
  font-size: 28px;
  margin-right: 12px;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
}

.listIcon {
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
  margin-left: auto;
  
  &:hover {
    background-color: #f0f0f0;
  }
  
  &:active {
    background-color: #e6e6e6;
  }
}

.diagnosisContent {
  cursor: text;
  min-height: 50px;
  
  &:hover {
    background-color: #fafafa;
  }
}

.diagnosisTextarea {
  width: 100%;
  min-height: 500px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 12px;
  font-size: 28px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  font-family: inherit;
  
  &:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }
}

.diagnosisDisplay {
  font-size: 28px;
  line-height: 1.5;
  color: #262626;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.listItem {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.diagnosisNumber {
  font-size: 28px;
  color: #8c8c8c;
  margin-right: 16px;
  font-weight: 500;
}

.diagnosisText {
  font-size: 28px;
  color: #262626;
  font-weight: 400;
}

.patCardContent {
  padding: 10px;
  //display: flex;
  //flex-wrap: wrap;
  justify-content: space-between;
}

.parametersGroup {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}


.parameterItem {
  width: 40%;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.paramLabel {
  width: 50%;
  font-size: 26px;
  color: #262626;
  font-weight: 400;
  min-width: 80px;
}

.paramValue {
  width: 60px;
  font-size: 26px;
  color: #262626;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  &:hover{
    text-decoration: underline;
    cursor: pointer;
  }
}

.paramUnit {
  width: 20%;
  font-size: 22px;
  color: #8c8c8c;
  margin-left: 6px;
  font-weight: 400;
}

.paramReference {
  font-size: 26px;
  color: #595959;
  font-weight: 400;
  line-height: 1.4;
}

.analysisContent {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  //border: 1px solid #e8e8e8;
  min-height: 120px;
}

.analysisText {
  font-size: 24px;
  color: #262626;
  line-height: 1.5;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 20px 16px;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  z-index: 1000;
}

/* 弹窗样式 */
.modalContent {
  padding: 20px;
}

.modalTitle {
  font-size: 32px;
  font-weight: 600;
  color: #262626;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.parameterTable {
  width: 100%;
}

.parameterRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  
  &:last-child {
    border-bottom: none;
  }
}

.parameterLabel {
  font-size: 28px;
  color: #262626;
  font-weight: 500;
  min-width: 120px;
}

.parameterValue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
}

.currentValue {
  font-size: 26px;
  color: #1890ff;
  font-weight: 600;
  margin-bottom: 4px;
}

.referenceValue {
  font-size: 24px;
  color: #8c8c8c;
  font-weight: 400;
}

/* 诊断字典弹窗样式 */
.diagnosisModalContent {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.diagnosisModalHeader {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
}

.diagnosisModalTitle {
  font-size: 32px;
  font-weight: 600;
  color: #262626;
}

.diagnosisModalButtons {
  display: flex;
  gap: 12px;
}

.diagnosisModalBody {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.categoryList {
  width: 40%;
  background-color: #f8f9fa;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
}

.categoryItem {
  padding: 20px 16px;
  font-size: 28px;
  color: #262626;
  border-bottom: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background-color 0.2s;
  
  &:hover {
    background-color: #e6f7ff;
  }
  
  &:active {
    background-color: #bae7ff;
  }
}

.categoryItemActive {
  background-color: #1890ff;
  color: #ffffff;
  
  &:hover {
    background-color: #40a9ff;
  }
  
  &:active {
    background-color: #096dd9;
  }
}

.diagnosisList {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #ffffff;
}

.diagnosisItem {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  
  &:last-child {
    border-bottom: none;
  }
  
  :global(.adm-checkbox) {
    font-size: 28px;
    
    .adm-checkbox-content {
      color: #262626;
      font-weight: 400;
    }
  }
}

/* 已选择诊断列表样式 */
.selectedDiagnosesContainer {
  background-color: #f0f8ff;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 20px;
  max-height: 200px;
  overflow-y: auto;
}

.selectedDiagnosesTitle {
  font-size: 26px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 12px;
}

.selectedDiagnosesList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selectedDiagnosisItem {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #1890ff;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 24px;
  color: #1890ff;
  transition: all 0.2s;
  
  &:hover {
    background-color: #e6f7ff;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
  }
}

.selectedDiagnosisText {
  margin-right: 8px;
  font-weight: 500;
}

.removeButton {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #ff4d4f;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  
  &:hover {
    background-color: #ff4d4f;
    color: #ffffff;
  }
}

/* antd-mobile 组件样式覆盖 */
:global {
  .adm-card-body {
    padding: 0 !important;
  }
}
